import 'package:flutter/material.dart';

class Custom_ListView_01 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(title: Text('FlutterDemo')),
      body: HomeContent(),
    );
  }
}

class HomeContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return ListView(
      padding: EdgeInsets.all(10),
      children: <Widget>[
        ListTile(
          leading: Icon(Icons.settings, size: 40),
          title: Text('华北黄淮高温雨今起强势登场'),
          subtitle: Text("中国天气网讯 21日开始，华北黄淮高温雨今起强势登场"),
        ),
        ListTile(
          title: Text('华北黄淮高温雨今起强势登场'),
          subtitle: Text("中国天气网讯 21日开始，华北黄淮高温雨今起强势登场"),
          trailing: Icon(Icons.home),
        ),
        ListTile(
          leading: Icon(Icons.pages),
          title: Text('华北黄淮高温雨今起强势登场'),
          subtitle: Text("中国天气网讯 21日开始，华北黄淮高温雨今起强势登场"),
        ),
        ListTile(
          leading: Icon(Icons.settings),
          title: Text('华北黄淮高温雨今起强势登场'),
          subtitle: Text("中国天气网讯 21日开始，华北黄淮高温雨今起强势登场"),
        ),
        ListTile(
          leading: Icon(
            Icons.home,
            color: Colors.yellow,
          ),
          title: Text('华北黄淮高温雨今起强势登场'),
          subtitle: Text("中国天气网讯 21日开始，华北黄淮高温雨今起强势登场"),
        ),
        ListTile(
          leading: Icon(Icons.pages),
          title: Text('华北黄淮高温雨今起强势登场'),
          subtitle: Text("中国天气网讯 21日开始，华北黄淮高温雨今起强势登场"),
        )
      ],
    );
  }
}
